<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
	</head>
	<body>
		<div id="box">
			<select name="menu_only" v-model="choice">
				<option value="">做出你的选择</option>
				<option v-for="item in selections" :value="item.value">{{item.text}}</option>
			</select>
			<p>您的选择是：{{choice}}</p>
			<select name="menu_multi" v-model="choices" multiple="multiple" size="10">
				<option>学习</option>
				<option>睡觉</option>
				<option>打豆豆</option>
				<option>打呼噜</option>
				<option>打喷嚏</option>
				<option>打你</option>
			</select>
			<p>您的选择是：{{choices}}</p>
		</div>

		<script>
			new Vue({
				el: '#box',
				data: {
					choice: '',
					selections: [{
							value: 'A',
							text: '我是好人'
						},
						{
							value: 'B',
							text: '我是好坏人'
						},
						{
							value: 'C',
							text: '我是男人'
						},
						{
							value: 'D',
							text: '我是女人'
						}
					],
					choices: []
				}
			})
		</script>
	</body>
</html>
